import http from '../utils/request.js'

export const userLogin = (info)=>{
	return http.post('login',info)
}

export const userUpdate = (userid,token,userObj)=>{
	console.log(userid,token,userObj);
	return http.request({
		url:`users/${userid}`,
		method:'PUT',
		header:{
			'X-LC-Session':token
		},
		data:userObj
	})
}